package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * DishFlavorMapper
 *
 * @author liliudong
 * @version 1.0
 * @description DishFlavorMapper
 * @date 2023/6/8 16:05
 */
@Mapper
public interface DishFlavorMapper {
    /**
     * 批量新增
     *
     * @param flavors
     */
    void insertBatch(List<DishFlavor> flavors);

    /**
     * 根据菜品ids批量删除
     *
     * @param dishIds
     */
    void deleteByDishIds(List<Long> dishIds);

    /**
     * 根据菜品ID查询
     *
     * @param dishId
     * @return
     */
    List<DishFlavor> selectListByDishId(Long dishId);
}
